<?php
namespace app\index\logic;
use think\Db;

class Log
{
    /**
     * 记录快应用日志
     * @param $theKey
     * @param $content
     * @param int $uid
     * @param int $qid
     * @param int $apiVersion
     * @Author: whh
     */
    public function addInfo($theKey, $content, $uid = 0, $qid = 0, $apiVersion = 0)
    {
        $data['the_key'] = $theKey;
        $data['content'] = $content;
        $data['uid']     = $uid;
        $data['qid']        = $qid;
        $data['api_version'] = $apiVersion;

        Db::table('quick_log')->insert($data);
    }
}